package com.fg.pro.model.enums;

public enum AppHttpCodeEnum {

    // 成功段固定为200
    SUCCESS(200, "操作成功"),
    SERVER_ERROR(503, "服务器内部错误"),

    POI_EXCEL_ERROR(551, "文件格式不正确"),

    //__________________________________________________________________________________________
    DATA_EXIST(610, "无法删除，该数据正在被使用"),
    DATA_JSR303(611, "数据校验不通过"),


    //__________________________________________________________________________________________
    USER_ERROR_LOGIN(402, "账号、手机号不存在"),
    USER_ERROR_PASSWORD(403, "密码错误"),
    HR_ERROR_MAIN_LOSS(451, "钉钉平台库数据确缺失，请刷新钉钉库信息"),

    //__________________________________________________________________________________________
    GOODS_ERROR_NOT_BLANK(602,"商品不存在"),
    GOODS_CATEGORY_ERROR_NOT_BLANK(603,"商品分类不存在"),


    ;


    int code;
    String errorMessage;

    AppHttpCodeEnum(int code, String errorMessage) {
        this.code = code;
        this.errorMessage = errorMessage;
    }

    public int getCode() {
        return code;
    }

    public String getErrorMessage() {
        return errorMessage;
    }
}
